<form action="" method="post" enctype="multipart/form-data" id="form_submit" class="form_submit">
  {if $smarty.get.type eq "edit"}
  	<input type="hidden" name="type" value="editt" />
    <input type="hidden" name="id" value="{$smarty.get.id}" />
  {else}
  	<input type=hidden name="type" value="add" />
  {/if}
  <input type="hidden" name="parent" value="{$smarty.get.id}" />
  <div id="admin_tabs_main_content"> 
    <!-- TABS_NAME -->
    <ul>
      <li><a href="#General">Общие</a></li>
    </ul>
    <!-- END TABS_NAME --> 
    <!-- ОБЩИЕ -->
    <div id="General">
      <div style="width:730px;">
      {if $smarty.get.type eq "edit"}
        <p class="position_name">Запись создана</p>
        <p class="position_input">{$Field.date_create}<input type="hidden" name="date_create" value="{$Field.date_create}" /></p>
        
        <p class="position_name">Запись обновлена</p>
        <p class="position_input">{$Field.date_update}</p>	
      {/if}
        <p class="position_name">Порядок</p>
        <p class="position_input"><input type="text" name="por" value="{$Field.por}" class="por-field"></p>
        
        <p class="position_name">Активна</p>
        <p class="position_input"><input type="checkbox" class="mini-switch" name="show" value="1"{if $Field.show} checked="checked"{/if} /></p>        
       
        <p class="position_name">Название</p>
        <p class="position_input"><input type="text" name="name" value="{$Field.name}"></p>        
        
        <p class="position_name">Значение</p>
        <p class="position_input"><input type="text" name="value" value="{$Field.value}"></p>       
 
      </div>
    </div>
  </div>
  <div id="posbutton">
    <a href="javascript:void(0);" class="ui_wo_buttons but_primenit ui-state-default ui-corner-all"><span class="ui-icon ui-icon-refresh"></span>Применить</a> 
    <a href="javascript:void(0);" class="ui_wo_buttons but_save ui-state-default ui-corner-all"><span class="ui-icon ui-icon-disk"></span>Сохранить</a>
  </div>
</form>
<script type="text/javascript">
$(function()
{
	$(".but_primenit").live("click", function(){
		$("#form_submit").attr("action", '?m={$smarty.get.m}&id={$smarty.get.id}&parent={$smarty.get.parent}&pageid={$ID_ACTION}&type=edit').submit();		
	});		
	$(".but_save").live("click", function(){
		$("#form_submit").attr("action", '?m={$smarty.get.m}&id={$smarty.get.id}&parent={$smarty.get.parent}').submit();
	});
});
</script> 
